package com.ttg.controller;


import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.ttg.utils.TLinx2Util;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;
import java.util.Enumeration;
import java.util.Map;
import java.util.TreeMap;

@Controller
@RequestMapping("/callback")
public class TLinx2CallbackController {

    /**
     * Field LOGGER
     * Description
     */
    private static final Logger LOGGER = LoggerFactory.getLogger(TLinx2CallbackController.class);

    /**
     * Method testPayCallback
     * Description 说明：接收回调通知接口。仅当订单状态变为1（交易成功）、4（已取消）时，服务器才会发送回调
     */
    @RequestMapping(value = "/payResult", method = RequestMethod.GET)
    @ResponseBody
    public String testPayCallback(HttpServletRequest request) {

        return "notify_success";
    }
}


